package chapter4.namedJDBC;

import java.util.List;
import java.util.Map;

import chapter4.namedJDBC.UserDao;
import chapter4.namedJDBC.User;

public class UserService {
	private UserDao userDao;

	public UserDao getUserDao() {
		return userDao;
	}

	public void setUserDao(UserDao userDao) {
		this.userDao = userDao;
	}

	public void add(Map paramMap) {
		userDao.add(paramMap);
	}
	public void addUser(User user) {
		userDao.addUser(user);
	}
	public List<Map<String, Object>> findAllMap(Map paramMap) {
		return userDao.findAllMap(paramMap);
	}

}
